import initialState from '../state';

function publishServiceReducer(state = initialState.publishService, action){
    switch(action.type){
        case 'EDIT_DATE_SHOE':
            return Object.assign({},state,{
                time:{
                    isOpen: action.status
                }
            });
        case 'EDIT_DATA_VALUE':
            return Object.assign({},state,{
                time: {
                    date: action.date
                }
            })
        default :
            return state;
    }
}

export default publishServiceReducer;